package com.example.dao;

import com.example.dto.webchat.CategoriesWebchatQueryDTO;
import com.example.mybatis.dao.BaseDao;
import com.example.entity.DishesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* 菜品表
*
* @author yyyyjinying 1020066395@qq.com
* @since 1.0-SNAPSHOT 2025-04-29
*/
@Mapper
public interface DishesDao extends BaseDao<DishesEntity> {
    DishesEntity categoriesAndRestaruantsByDisheId(@Param("disId") Long disId);

    List<DishesEntity> getPage(@Param("params")  Map<String, Object> params);

    List<DishesEntity>  getDishesByCategorieId(@Param("categoryId") Long categoryId, @Param("categoriesWebchatQueryDTO") CategoriesWebchatQueryDTO categoriesWebchatQueryDTO);

    void deleteDishTagRelation(@Param("dishIds") List<Long> dishIds);
    void deleteDishFlavorsRelation(@Param("dishIds") List<Long> dishIds);
    void deleteDishSkus(@Param("dishIds") List<Long> dishIds);
    void deleteDishMaterials(@Param("dishIds") List<Long> dishIds);
}